home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 6 (Reseller Edition)
/
Apple Ref. & Pres. Lib.v6.0.toast
/
pc
/
3-Presentations
/
Apple Demos
/
Training
/
HyperCard 2.0 Training
/
•HC 2.0-4
/
card_6439.txt
< prev
next >
Wrap
Text File
|
1990-04-06
|
4KB
|
176 lines
-- card: 6439 from stack: in.0-4
-- bmap block id: 13914
-- flags: 0000
-- background id: 7102
-- name: Ex 3.1
-- part 1 (button)
-- low flags: 00
-- high flags: 8005
-- rect: left=207 top=122 right=145 bottom=417
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 174
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: At stack creation
----- HyperTalk script -----
on mouseUp
hide fld "feedback"
set hilite of me to not hilite of me
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: 8005
-- rect: left=207 top=144 right=167 bottom=417
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 174
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: From a script
----- HyperTalk script -----
on mouseUp
hide fld "feedback"
set hilite of me to not hilite of me
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 8005
-- rect: left=207 top=166 right=189 bottom=417
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 174
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: At stack compaction
----- HyperTalk script -----
on mouseUp
hide fld "feedback"
set hilite of me to not hilite of me
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: 8005
-- rect: left=207 top=188 right=211 bottom=455
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 174
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: While copying a card to another window
----- HyperTalk script -----
on mouseUp
hide fld "feedback"
set hilite of me to not hilite of me
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=344 top=322 right=339 bottom=460
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Correct Answer
----- HyperTalk script -----
-- This handler shows the correct answer.
on mouseUp
hideFeedback
repeat with i=1 to 4
set the hilite of btn i to false
end repeat
repeat 3
set the hilite of btn 1 to false
set the hilite of btn 3 to false
set the hilite of btn 4 to false
wait 25
set the hilite of btn 1 to true
set the hilite of btn 3 to true
set the hilite of btn 4 to true
wait 25
end repeat
ans 5
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=394 top=300 right=319 bottom=460
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Done
----- HyperTalk script -----
-- This handler checks the user's answer and provides feedback.
-- The "ans" and "noAns" handlers are in the stack script.
on mouseUp
put empty into choices
repeat with i=1 to 4
put i into last char of ansName
if the hilite of btn i is true then
put i after choices
end if
end repeat
if choices is fld "answer" then ans 1
else if length(choices) is 4 then ans 4
else if hilite of btn 2 is true then ans 3
else if length(choices) is 0 then noAns
else ans 2
end mouseUp
-- part contents for background part 9
----- text -----
1 of 7
-- part contents for background part 6
----- text -----
Select all the instances when you can change the size of a card.
-- part contents for background part 19
----- text -----
That’s right. You can change the size of a stack at any of these times.
You’ve gotten part of the answer. Try again.
No, you can’t change the size of a card from a script. Try again.
Sorry, but you can’t change a card’s size in all of these cases. Try again.
This is the correct answer. You can change the card size when the stack is created, when you compact, and while copying a card to another window.
-- part contents for background part 21
----- text -----
134